package com.crv.ci.mq;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * Created by crv on 2015-12-03.
 */
public class IpQueueDestination extends org.apache.activemq.command.ActiveMQQueue{

    public IpQueueDestination() {
        String IP = "";
        try {
            IP = InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
        new IpQueueDestination(IP);
    }

    public IpQueueDestination(String ip) {

        this.setPhysicalName(ip);
    }
}
